package com.blog.service.imp.active;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.blog.dao.active.ActiveTagDao;
import com.blog.entity.active.ActiveTag;
import com.blog.service.active.ActiveTagService;

 


@Service
public class ActiveTagServiceImp implements ActiveTagService {

	@Autowired
	private ActiveTagDao dao;
	
	@Override
	public Integer saveActiveTag(ActiveTag tag) {
		tag.setState(1);
		tag.setCreateTime(new Date());
		tag.setUpdateTime(new Date());
		return dao.saveActiveTag(tag);
	}

	@Override
	public Integer updateActiveTag(ActiveTag tag) {
		return dao.updateActiveTag(tag);
	}

	@Override
	public List<ActiveTag> listAllActiveTag(Map<String, Object> map) {
		return dao.listAllActiveTag(map);
	}

}
